package com.threeti.jiayusms.domain.model.defaulttemplate;

import com.threeti.jiayusms.domain.model.CommunicationMessage;
import com.threeti.jiayusms.domain.model.CommunicationRule;
import com.threeti.jiayusms.domain.model.CommunicationTime;
import com.threeti.jiayusms.framework.domain.meta.AssocationClass;
import com.threeti.jiayusms.framework.domain.support.DefaultCustomKeyDomainEntity;

/** 短信方式 */
public class SMSTemplateMapping extends DefaultCustomKeyDomainEntity implements AssocationClass {
  private CommunicationMessage msgTemplate;
  private CommunicationRule msgRuleTemplate;
  private CommunicationTime msgTimeTemplate;
  
  private String msgNode;
  private String msgProductType;
  private String msgConditionType;
  private String msgCondition;
  private boolean msgCommunicationEnabled;
  
  public CommunicationMessage getMsgTemplate() {
    return msgTemplate;
  }
  public void setMsgTemplate(CommunicationMessage msgTemplate) {
    this.msgTemplate = msgTemplate;
  }
  public CommunicationRule getMsgRuleTemplate() {
    return msgRuleTemplate;
  }
  public void setMsgRuleTemplate(CommunicationRule msgRuleTemplate) {
    this.msgRuleTemplate = msgRuleTemplate;
  }
  public CommunicationTime getMsgTimeTemplate() {
    return msgTimeTemplate;
  }
  public void setMsgTimeTemplate(CommunicationTime msgTimeTemplate) {
    this.msgTimeTemplate = msgTimeTemplate;
  }
  public String getMsgNode() {
    return msgNode;
  }
  public void setMsgNode(String msgNode) {
    this.msgNode = msgNode;
  }
  public String getMsgProductType() {
    return msgProductType;
  }
  public void setMsgProductType(String msgProductType) {
    this.msgProductType = msgProductType;
  }
  public String getMsgConditionType() {
    return msgConditionType;
  }
  public void setMsgConditionType(String msgConditionType) {
    this.msgConditionType = msgConditionType;
  }
  public String getMsgCondition() {
    return msgCondition;
  }
  public void setMsgCondition(String msgCondition) {
    this.msgCondition = msgCondition;
  }
  public boolean isMsgCommunicationEnabled() {
    return msgCommunicationEnabled;
  }
  public void setMsgCommunicationEnabled(boolean msgCommunicationEnabled) {
    this.msgCommunicationEnabled = msgCommunicationEnabled;
  }

  /** 短信通信启用 */
  public void enableMsgCommunication() {
    setMsgCommunicationEnabled(true);
  }

  public void disableMsgCommunication() {
    setMsgCommunicationEnabled(false);
  }
  
}
